﻿using System;
using System.Reflection;
using DMS.Business.Modules.LeaveWord;

namespace DMS.Web.Common.Services
{
    public partial class HomeIndexHandler : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string methodName = Request.Params["method"];
            MethodInfo method = this.GetType().GetMethod(methodName);

            method.Invoke(this, null);
        }

        public void SaveLeaveWord()
        {
            string content = Request.Params["content"];

            LeaveWordService.AddLeaveWord(content);
            Response.Write("ok");
            Response.End();
        }
    }
}